﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace UcAsp.Net.Web.Controllers
{
    public class RecommendController : Controller
    {
        //
        // GET: /Recommend/

        public RedirectResult Index(int id)
        {
            BLL.SettingConfig.Theme(Request.UserAgent);
            System.Web.HttpCookie RecommendCookie = new HttpCookie("User");
            RecommendCookie.Values["UserID"] = id.ToString();
            RecommendCookie.Expires = DateTime.Now.AddDays(30);
            Response.AppendCookie(RecommendCookie);
            return Redirect(BLL.SysParamBLL.GetParamByName(""));
        }

        public ActionResult MyRecommend()
        {
            BLL.SettingConfig.Theme(Request.UserAgent);
            return View();
        }
    }
}
